package com.fanh.service;

import com.fanh.model.GuideCoinOrder;
import com.fanh.model.GuideCoinOrderExample;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface GuideCoinOrderService {

    /**
     * 创建订单
     */

    GuideCoinOrder insert(GuideCoinOrder order);

    /**
     * 修改订单
     */
    GuideCoinOrder update(GuideCoinOrderExample order);

    /**
     * 微信订单支付
     * @param orderId
     * @param request
     */
    Map<String, String> wxPay(Long orderId, HttpServletRequest request)throws Exception ;

    @Transactional
     String payBack(HttpServletRequest request) ;

     @Transactional
    int applePay(String orderSn, String certificateCode) ;


}
